package com.atguigu.common.result;

import lombok.Getter;

import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName:ResultCodeEnum
 * Package:com.atguigu.common.result
 * Description:
 *
 * @Author:小飞机
 * @Create：2023/5/5 - 9:17
 * @Version: v1.0
 */
@Getter
public enum ResultCodeEnum {
    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(2012, "服务异常"),
    DATA_ERROR(204, "数据异常"),

    LOGIN_AUTH(208, "认证失败"),

    ;
    private Integer code;
    private String message;

    private ResultCodeEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

}
